<script>
	$(document).ready(function(){
		
		$('#kd_fakultas').change(function(){
			$('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		});
		
	});
</script>

<form id="form1" method="post" style="margin:10px;">
	<input type="hidden" name="kode" id="kode" value="<?=$kode?>">
	<div class="fitem" >
		<label style="width:100px">Kode Dosen </label>:
		<input name="kd_dosen" size="15" required="true" value="<?=$kd_dosen?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">NIDN </label>:
		<input name="nidn" size="15" required="true" value="<?=$nidn?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Nama Dosen </label>:
		<input name="nama_dosen" size="30" required="true" value="<?=$nama_dosen?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Fakultas </label>:
			<select id="kd_fakultas" name="kd_fakultas" style="width:200px;">
					<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$kd_fakultas));?>
			</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Prodi  </label>:
			<select id="kd_prodi" name="kd_prodi" style="width:200px;">
					<?=$this->mdl_prosedur->OptionProdi(array('value'=>$kd_prodi, 'kd_fakultas'=>$kd_fakultas));?>
			</select>
	</div>
	<div class="fitem" >
		<label style="width:100px">Tim Teaching </label>:
		<input name="pembantu" size="50" required="true" value="<?=$pembantu?>">
	</div>	
	<div class="fitem" >
		<label style="width:100px">Alamat </label>:
		<input name="alamat" size="50" required="true" value="<?=$alamat?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Telepon </label>:
		<input name="telepon" size="50" required="true" value="<?=$telepon?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Pendidikan S1 </label>:
		<input name="pendidikan_s1" size="30" required="true" value="<?=$pendidikan_s1?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Pendidikan S2 </label>:
		<input name="pendidikan_s2" size="30" required="true" value="<?=$pendidikan_s2?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Pendidikan S3 </label>:
		<input name="pendidikan_s3" size="30" required="true" value="<?=$pendidikan_s3?>">
	</div>
	<div class="fitem" >
		<label style="width:100px">Status </label>:
		<select id="status_dosen" name="status_dosen">
			<option value="">- Pilih Status -</option>
			<option value="Dosen Tetap" <?= $status_dosen == 'Dosen Tetap'?'selected ="selected"':''; ?>>Dosen Tetap</option>
			<option value="Dosen Bantuan Kopertis" <?= $status_dosen == 'Dosen Bantuan Kopertis'?'selected ="selected"':''; ?>>Dosen Bantuan Kopertis</option>
			<option value="Dosen Luar Biasa" <?= $status_dosen == 'Dosen Luar Biasa'?'selected ="selected"':''; ?>>Dosen Luar Biasa</option>
			</select></li>
	</div>
	<div class="fitem" >
		<label style="width:100px">Status</label>:		
		<input type="checkbox" name="status" <?=$status=='A'?'checked':''?>/> Aktif
	</div>
</form>
	

